<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Langchain框架教程大纲</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            margin: 20px;
            background-color: #f4f4f4;
            color: #333;
        }
        .container {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        h1 {
            color: #2c3e50;
            text-align: center;
            border-bottom: 2px solid #3498db;
            padding-bottom: 10px;
        }
        ul {
            list-style-type: none;
            padding-left: 0;
        }
        li {
            margin-bottom: 10px;
        }
        li > strong {
            font-size: 1.2em;
            color: #3498db;
        }
        ul ul {
            padding-left: 20px;
            margin-top: 5px;
        }
        ul ul li {
            font-size: 0.95em;
            margin-bottom: 5px;
            color: #555;
        }
        ul ul li::before {
            content: "▹ ";
            color: #3498db;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Langchain框架教程大纲</h1>
        <ul>
            <li>
                <strong><a href="../chapter1/chapter1_basics.html">第一章：Langchain基础</a></strong>
                <ul>
                    <li><a href="../chapter1/chapter1_basics.html#1-1">1.1 Langchain是什么？</a></li>
                    <li><a href="../chapter1/chapter1_basics.html#1-2">1.2 为什么使用Langchain？</a></li>
                    <li><a href="../chapter1/chapter1_basics.html#1-3">1.3 Langchain的核心组件介绍</a></li>
                    <li><a href="../chapter1/chapter1_basics.html#1-4">1.4 安装和配置Langchain环境</a></li>
                </ul>
            </li>
            <li>
                <strong><a href="../chapter2/chapter2_models.html">第二章：Models模块</a></strong>
                <ul>
                    <li><a href="../chapter2/chapter2_models.html#2-1">2.1 语言模型（LLMs）概述</a></li>
                    <li><a href="../chapter2/chapter2_models.html#2-2">2.2 如何集成不同的语言模型（OpenAI, Hugging Face等）</a></li>
                    <li><a href="../chapter2/chapter2_models.html#2-3">2.3 模型的调用和配置（温度、最大Token等）</a></li>
                    <li><a href="../chapter2/chapter2_models.html#2-4">2.4 聊天模型（Chat Models）</a></li>
                    <li><a href="../chapter2/chapter2_models.html#2-5">2.5 文本嵌入模型（Text Embedding Models）</a></li>
                </ul>
            </li>
            <li>
                <strong><a href="../chapter3/chapter3_prompts.html">第三章：Prompts模块</a></strong>
                <ul>
                    <li><a href="../chapter3/chapter3_prompts.html#3-1">3.1 提示词（Prompts）的重要性</a></li>
                    <li><a href="../chapter3/chapter3_prompts.html#3-2">3.2 提示词模板（Prompt Templates）的使用</a></li>
                    <li><a href="../chapter3/chapter3_prompts.html#3-3">3.3 聊天提示词模板（Chat Prompt Templates）</a></li>
                    <li><a href="../chapter3/chapter3_prompts.html#3-4">3.4 示例选择器（Example Selectors）与少样本提示（Few-shot Prompting）</a></li>
                    <li><a href="../chapter3/chapter3_prompts.html#3-5">3.5 输出解析器（Output Parsers）</a></li>
                    <li><a href="../chapter3/chapter3_prompts.html#3-6">3.6 如何设计清晰、明确的提示词来定义AI的角色和任务</a></li>
                    <li><a href="../chapter3/chapter3_prompts.html#3-7">3.7 如何通过提示词控制AI的输出格式和风格</a></li>
                </ul>
            </li>
            <li>
                <strong><a href="../chapter4/chapter4_sections/4-1_what_is_chain.html">第四章：Chains模块</a></strong>
                <ul>
                    <li><a href="../chapter4/chapter4_sections/4-1_what_is_chain.html">4.1 什么是Chain？</a></li>
                    <li><a href="../chapter4/chapter4_sections/4-2_llmchain_basic_chain.html">4.2 LLMChain：最基础的Chain</a></li>
                    <li><a href="../chapter4/chapter4_sections/4-3_sequential_chains.html">4.3 Sequential Chains：按顺序链接多个Chain</a>
                        <ul>
                            <li><a href="../chapter4/chapter4_sections/4-3_sequential_chains.html#4-3-1">4.3.1 SimpleSequentialChain示例</a></li>
                            <li><a href="../chapter4/chapter4_sections/4-3_sequential_chains.html#4-3-2">4.3.2 SequentialChain示例 (更通用)</a></li>
                        </ul>
                    </li>
                    <li><a href="../chapter4/chapter4_sections/4-4_router_chains.html">4.4 Router Chains：根据输入动态选择下一个Chain (进阶)</a></li>
                    <li><a href="../chapter4/chapter4_sections/4-5_custom_chain.html">4.5 自定义Chain</a></li>
                </ul>
            </li>
            <li>
                <strong><a href="../chapter5/chapter5_agents.html">第五章：Agents模块</a></strong>
                <ul>
                    <li><a href="../chapter5/chapter5_agents.html#5-1">5.1 什么是Agent？</a></li>
                    <li><a href="../chapter5/chapter5_agents.html#5-2">5.2 Agent的核心组件</a></li>
                    <li><a href="../chapter5/chapter5_agents.html#5-3">5.3 Agent的类型</a></li>
                    <li><a href="../chapter5/chapter5_agents.html#5-4">5.4 使用Qwen模型创建Agent示例</a>
                        <ul>
                            <li><a href="../chapter5/chapter5_agents.html#5-4-1">5.4.1 Zero-shot ReAct Agent示例</a></li>
                            <li><a href="../chapter5/chapter5_agents.html#5-4-2">5.4.2 Self-ask with search Agent示例</a></li>
                            <li><a href="../chapter5/chapter5_agents.html#5-4-3">5.4.3 Conversational ReAct Agent示例</a></li>
                        </ul>
                    </li>
                    <li><a href="../chapter5/chapter5_agents.html#5-5">5.5 Agent的高级主题</a></li>
                    <li><a href="../chapter5/chapter5_agents_mindmap.html" target="_blank">5.6 本章思维导图 (新窗口打开)</a></li>
                </ul>
            </li>
            <li>
                <strong><a href="../chapter6/chapter6_memory.html">第六章：Memory模块</a></strong>
                <ul>
                    <li><a href="../chapter6/chapter6_memory.html#6-1">6.1 Memory模块简介</a></li>
                    <li><a href="../chapter6/chapter6_memory.html#6-2">6.2 Memory的核心概念</a>
                        <ul>
                            <li><a href="../chapter6/chapter6_memory.html#RunnableWithMessageHistory_详解">RunnableWithMessageHistory 详解</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#如何存储和加载消息">如何存储和加载消息</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#你想要包装的可运行对象是什么？">你想要包装的可运行对象是什么？</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#设置Qwen模型">设置Qwen模型</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#示例1：消息输入，消息输出">示例1：消息输入，消息输出</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#示例2：字典输入，消息输出">示例2：字典输入，消息输出</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#示例3：消息输入，字典输出">示例3：消息输入，字典输出</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#示例4：自定义历史工厂配置">示例4：自定义历史工厂配置</a></li>
                        </ul>
                    </li>
                    <li><a href="../chapter6/chapter6_memory.html#6-3">6.3 Langchain中其他类型的Memory (传统方式)</a>
                        <ul>
                            <li><a href="../chapter6/chapter6_memory.html#6-3">6.3.1 ConversationBufferMemory</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#6-3">6.3.2 ConversationBufferWindowMemory</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#6-3">6.3.3 ConversationTokenBufferMemory</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#6-3">6.3.4 ConversationSummaryMemory</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#6-3">6.3.5 ConversationSummaryBufferMemory</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#6-3">6.3.6 其他类型的Memory (简述)</a></li>
                        </ul>
                    </li>
                    <li><a href="../chapter6/chapter6_memory.html#6-4">6.4 在Chains和Agents中使用Memory</a>
                        <ul>
                            <li><a href="../chapter6/chapter6_memory.html#6-4">6.4.1 在Chains中使用Memory</a></li>
                            <li><a href="../chapter6/chapter6_memory.html#6-4">6.4.3 在Agents中使用Memory</a></li>
                        </ul>
                    </li>
                    <li><a href="../chapter6/chapter6_memory.html#6-5">6.5 Memory的最佳实践和注意事项</a></li>
                    <li><a href="../chapter6/chapter6_memory.html#6-6">6.6 总结</a></li>
                </ul>
            </li>
            <li>
                <strong><a href="../chapter7/chapter7_indexes.html">第七章：Indexes模块 (数据增强生成 RAG)</a></strong>
                <ul>
                    <li><a href="../chapter7/chapter7_indexes.html#s1">7.1 Indexes模块与RAG概述</a></li>
                    <li><a href="../chapter7/chapter7_indexes.html#s2">7.2 RAG的核心组件</a></li>
                    <li><a href="../chapter7/chapter7_indexes.html#s3">7.3 Document Loaders (文档加载器)</a></li>
                    <li><a href="../chapter7/chapter7_indexes.html#s4">7.4 Text Splitters (文本分割器)</a></li>
                    <li><a href="../chapter7/chapter7_indexes.html#s5">7.5 Text Embedding Models (文本嵌入模型)</a></li>
                    <li><a href="../chapter7/chapter7_indexes.html#s6">7.6 Vector Stores (向量存储)</a></li>
                    <li><a href="../chapter7/chapter7_indexes.html#s7">7.7 Retrievers (检索器)</a></li>
                    <li><a href="../chapter7/chapter7_indexes.html#s8">7.8 构建一个简单的RAG应用 (Chain)</a></li>
                    <li><a href="../chapter7/chapter7_indexes.html#s9">7.9 总结与后续</a></li>
                </ul>
            </li>
            <li>
                <strong><a href="../chapter8/chapter8_callbacks.html">第八章：Callbacks模块</a></strong>
                <ul>
                    <li><a href="../chapter8/chapter8_callbacks.html#s1">8.1 Callbacks模块简介</a></li>
                    <li><a href="../chapter8/chapter8_callbacks.html#s2">8.2 Callback Handler (回调处理器)</a></li>
                    <li><a href="../chapter8/chapter8_callbacks.html#s3">8.3 内置的回调处理器</a></li>
                    <li><a href="../chapter8/chapter8_callbacks.html#s4">8.4 自定义回调处理器</a></li>
                    <li><a href="../chapter8/chapter8_callbacks.html#s5">8.5 回调的用途</a></li>
                    <li><a href="../chapter8/chapter8_callbacks.html#s6">8.6 如何传递和管理Callbacks</a></li>
                    <li><a href="../chapter8/chapter8_callbacks.html#s7">8.7 总结与后续</a></li>
                </ul>
            </li>
            <li>
                <strong>第九章：实际应用案例</strong>
                <ul>
                    <li><a href="../chapter9/chapter9_application_qa.html#s9-1">9.1 构建一个简单的问答系统</a></li>
                    <li><a href="../chapter9/chapter9_application_text_generation.html#s9-2">9.2 实现自动化文本生成（如博客文章、邮件）</a></li>
                    <li><a href="../chapter9/chapter9_application_extraction.html#s9-3">9.3 从文本中提取结构化信息</a></li>
                    <li><a href="../chapter9/chapter9_application_chatbot.html#s9-4">9.4 开发一个具备上下文理解能力的聊天机器人</a></li>
                    <li><a href="../chapter9/chapter9_application_role_playing_ai.html#s9-5">9.5 如何利用Langchain和提示词构建具有特定角色的AI应用（如客服助手、编程助手）</a></li>
                    <li><a href="../chapter9/chapter9_application_rag_chatbot.html#s9-6">9.6 构建一个基于RAG的问答机器人</a></li>
                </ul>
            </li>
            <li>
                <strong>第十章：AI系统提示词设计进阶</strong>
                <ul>
                    <li><a href="../chapter10/chapter10_1_system_prompts.html">10.1 System Prompts（系统提示词）</a></li>
                    <li><a href="../chapter10/chapter10_2_persona_tone_style.html">10.2 Persona, Tone, Style（角色、语气、风格）</a></li>
                    <li><a href="../chapter10/chapter10_3_ambiguity_uncertainty.html">10.3 Ambiguity and Uncertainty（歧义与不确定性）</a></li>
                    <li><a href="../chapter10/chapter10_4_controlling_output_format.html">10.4 Controlling Output Format（控制输出格式）</a></li>
                    <li><a href="../chapter10/chapter10_5_few_shot_prompting.html">10.5 Few-shot Prompting（少样本提示）</a></li>
                    <li><a href="../chapter10/chapter10_6_chain_of_thought.html">10.6 Chain-of-Thought（思维链）</a></li>
                    <li><a href="../chapter10/chapter10_7_self_consistency.html">10.7 Self-Consistency（自我一致性）</a></li>
                    <li><a href="../chapter10/chapter10_8_retrieval_augmented_generation.html">10.8 Retrieval Augmented Generation (RAG)（检索增强生成）</a></li>
                    <li><a href="../chapter10/chapter10_9_prompt_chaining.html">10.9 Prompt Chaining（提示词链）</a></li>
                    <li><a href="../chapter10/chapter10_10_evaluation.html">10.10 Evaluation（评估）</a></li>
                    <li><a href="../chapter10/chapter10_11_responsible_ai.html">10.11 Responsible AI（负责任的AI）</a></li>
                </ul>
            </li>
            <li>
                <strong>附录</strong>
                <ul>
                    <li><a href="../appendix/appendix_a1_faq.html">附录 A.1 常见问题解答 (FAQ)</a></li>
                    <li>
                        A.2 推荐学习资源
                        <ul>
                            <li><a href="https://python.langchain.com/docs/get_started/introduction" target="_blank">Langchain官方文档 (Python)</a> - 最权威的学习资源，包含详细的概念解释和API参考。</li>
                            <li><a href="https://js.langchain.com/docs/get_started/introduction" target="_blank">Langchain官方文档 (JS/TS)</a> - 如果你使用JavaScript或TypeScript，这是相应的官方文档。</li>
                            <li><a href="https://github.com/langchain-ai/langchain" target="_blank">Langchain GitHub仓库</a> - 查看源代码，了解最新进展和社区贡献。</li>
                            <li><a href="https://www.youtube.com/@LangChainAI" target="_blank">Langchain YouTube频道</a> - 官方发布的教程视频和讲座。</li>
                            <li><a href="https://blog.langchain.dev/" target="_blank">Langchain官方博客</a> - 获取最新的功能介绍、案例研究和技术深度文章。</li>
                            <li><a href="https://twitter.com/LangChainAI" target="_blank">Langchain官方Twitter</a> - 关注官方动态和社区讨论。</li>
                            <li><a href="https://discord.com/invite/uyAbN7WwGp" target="_blank">Langchain Discord社区</a> - 与其他开发者交流，提问和分享经验。</li>
                        </ul>
                    </li>
                    <li>
                        A.3 Langchain生态系统概览
                        <ul>
                            <li><strong>LangChain Libraries:</strong></li>
                            <li>LangChain (Python): 核心库，提供构建LLM应用的框架。</li>
                            <li>LangChain.js (JavaScript/TypeScript): 适用于JavaScript/TypeScript开发者的库。</li>
                            <li>LangServe: 用于将LangChain Chain部署为REST API。</li>
                            <li>LangSmith: 用于调试、测试、评估和监控LLM应用程序的平台。</li>
                            <li><strong>Integrations:</strong></li>
                            <li>LangChain与各种模型提供商（如OpenAI, Anthropic, Hugging Face）、数据存储（如向量数据库）、API等的集成。</li>
                            <li><strong>Ecosystem Projects:</strong></li>
                            <li>围绕LangChain构建的第三方项目和工具，扩展了LangChain的功能和应用场景。</li>
                        </ul>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</body>
</html>
